<?php
/**
 *	Data Model of Company Leader.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			David Seebacher <dseebacher@gmail.com>
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			28.04.2007
 *	@version		0.2
 */
/**
 *	Data Model of Company Leader.
 *	@package		mv2.model
 *	@extends		Framework_Krypton_Core_Model
 *	@author			David Seebacher <dseebacher@gmail.com>
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			28.04.2007
 *	@version		0.2
 */

class Model_CompanyLeader extends Framework_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int		$companyleader_id	ID of Company Leader Relation
	 *	@return		void
	 */
	function __construct( $companyleader_id = false )
	{
		$tablename	= "companyleader";
		$fields	= array (
			"companyleader_id",
			"user_id",
			"company_id"
			);
		$primary_key	= "companyleader_id";
		$indices		= array( 'user_id', 'company_id' );
		parent::__construct( $tablename, $fields, $primary_key, $$primary_key );
		$this->setIndices( $indices );
	}
}
?>